<?php $this->load->view('emailheader'); ?>
<?php extract(__email_styles()); ?>
<?php $num_rows = __earray($post_arr, 'num_rows',TRUE); ?>
<?php $cart = __earray($post_arr, 'cart',TRUE); ?>
<h2>Shopping Cart: <?php __earray($post_arr, 'order_id'); ?></h2>
<p>For reference your order no is : <?php __earray($post_arr, 'order_id'); ?></p><br/>
<?php if($num_rows > 0){ ?>
<?php $tbl_th_td = 'color: #666666;font-size: 12px;font-weight: bold;padding: 0 10px 0 0;text-transform: capitalize;vertical-align: middle;';?>
  <table width="100%" class="tables_sample1 mytables" id="myTable" border="0" cellspacing="0" cellpadding="0">
    <thead>
      <tr style="background-color: #DDEFFD;height: 35px;">
        <th align="left" width="1%" style="<?php __e($tbl_th_td);?>">&nbsp;</th>
        <th align="left" width="5%" style="<?php __e($tbl_th_td);?>">ID</th>
        <th align="left" width="5%" style="<?php __e($tbl_th_td);?>">Type</th>
        <th align="left" width="40%" style="<?php __e($tbl_th_td);?>">Title</th>
        <th align="left" width="12%" style="<?php __e($tbl_th_td);?>">Price</th>
        
        <th align="left" width="1%">&nbsp;</th>
      </tr>
      <?php
      foreach ($cart as $key => $val){ ?>
      <tr class="trbottomhr pane">
        <td align="left" valign="top">&nbsp;</td>
        <td align="left" valign="top"><?php __display_data($val['id']); ?></td>
        <td align="left" valign="top"><?php __display_data($val['type']); ?></td>
        <td align="left" valign="top">
          <a href="<?php __display_data($val['url']); ?>" title="<?php __display_data($val['name']); ?>">
            <?php __display_data($val['name']); ?>
          </a>
        </td>
        <td align="left" valign="top"><?php __display_data(__price($val['price'])); ?></td>
        
        <td align="left" valign="top">&nbsp;</td>
      </tr>
      <?php } ?>
      
    </thead>  
  </table>
<?php }else{ /*</else:if($num_rows > 0)>*/ ?>
<h3><?php __e(LIST_NO_DATA_MSG);?></h3>	
<?php }/*</if($num_rows > 0)>*/ ?>

<h3>User Details</h3>

<table border="0" cellpadding="0" cellspacing="0" class="frm_geneal_det" width="560">
<tr>
  <td valign="top" align="left" width="20%"><label for="os_ord_usr_name"><span class="imp">*</span>&nbsp;Name</label></td>
  <td valign="top" align="left"><?php __earray($post_arr, 'os_ord_usr_name'); ?></td>
</tr>
<tr>
  <td valign="top" align="left"><label for="os_ord_usr_email"><span class="imp">*</span>&nbsp;Email</label></td>
  <td valign="top" align="left"><?php __earray($post_arr, 'os_ord_usr_email'); ?></td>
</tr> 

<tr>
  <td valign="top" align="left"><label for="os_ord_usr_phone"><span class="imp">*</span>&nbsp;Phone</label></td>
  <td valign="top" align="left"><?php __earray($post_arr, 'os_ord_usr_phone'); ?></td>
</tr>
<tr>
  <td valign="top" align="left"><label for="os_ord_usr_mobile"><span class="imp">&nbsp;</span>&nbsp;Mobile</label></td>
  <td valign="top" align="left"><?php __earray($post_arr, 'os_ord_usr_mobile'); ?></td>
</tr>
<tr>
  <td valign="top" align="left"><label for="os_ord_usr_fax"><span class="imp">&nbsp;</span>&nbsp;Fax</label></td>
  <td valign="top" align="left"><?php __earray($post_arr, 'os_ord_usr_fax'); ?></td>
</tr>
<tr>
  <td valign="top" align="left"><label for="os_ord_usr_comments"><span class="imp">&nbsp;</span>&nbsp;Comment</label></td>
  <td valign="top" align="left"><?php __earray($post_arr, 'os_ord_usr_comments'); ?></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="frm_inst_details" width="560">
<tr>
  <td valign="top" align="left" width="20%"><label for="os_ord_usr_add1"><span class="imp">&nbsp;</span>&nbsp;Address</label></td>
  <td valign="top" align="left"><?php __earray($post_arr, 'os_ord_usr_add1'); ?></td>            
</tr>          
<tr>
  <td valign="top" align="left"><label for="os_ord_usr_city"><span class="imp">&nbsp;</span>&nbsp;City</label></td>
  <td valign="top" align="left"><?php __earray($post_arr, 'os_ord_usr_city'); ?></td>
</tr>
<tr>
  <td valign="top" align="left"><label for="os_ord_usr_state"><span class="imp">&nbsp;</span>&nbsp;State</label></td>
  <td valign="top" align="left"><?php __earray($post_arr, 'os_ord_usr_state'); ?></td>
</tr>
<tr>
  <td valign="top" align="left"><label for="os_ord_usr_postcode"><span class="imp">&nbsp;</span>&nbsp;Postcode</label></td>
  <td valign="top" align="left"><?php __earray($post_arr, 'os_ord_usr_postcode'); ?></td>
</tr>
<tr>
  <td valign="top" align="left"><label for="os_ord_usr_country"><span class="imp">&nbsp;</span>&nbsp;Country</label></td>
  <td valign="top" align="left"><?php __earray($post_arr, 'os_ord_usr_country'); ?></td>
</tr>

<tr>
  <td valign="top" align="left"><label for="os_ord_usr_ref_ip"><span class="imp">&nbsp;</span>&nbsp;Ref IP</label></td>
  <td valign="top" align="left"><?php __earray($post_arr, 'os_ord_usr_ref_ip'); ?></td>
</tr>
<tr>
  <td valign="top" align="left"><label for="os_ord_usr_ref_url"><span class="imp">&nbsp;</span>&nbsp;Ref URL</label></td>
  <td valign="top" align="left"><?php __earray($post_arr, 'os_ord_usr_ref_url'); ?></td>
</tr>
</table>


<?php $this->load->view('emailfooter'); ?>